-- GENERATED SPELL FOR [Crystalline Ice Elemental] --


function spell0_26316(pUnit, Event) --@Ice Slash,n/a--
pUnit:FullCastSpellOnTarget(51878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26316', 10341, 1)
end

function Sorts_26316(pUnit, Event)
local choix_sorts_26316 = math.random(0, 0)
if choix_sorts_26316 == 0 then
pUnit:RegisterEvent('spell0_26316', 1, 1)
end
end

function mob26316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26316', math.random(1500, 3000), 1)
end

function mob26316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26316, 1, 'mob26316_Action')
RegisterUnitEvent(26316, 2, 'mob26316_Leave')
RegisterUnitEvent(26316, 3, 'mob26316_Kill')
RegisterUnitEvent(26316, 4, 'mob26316_Die')
